package Io;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class FileReader_1 {
    public static void main(String[] args) {
        FileReader reader=null;
        try {
            reader =new FileReader("node.TXT");
            char[] chars=new char[2];
            int readCont=0;
            while((readCont= reader.read(chars))!=-1){
                System.out.print(new String(chars));
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                reader.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
